﻿@model MicroAmoy.Application.Web.CustomerRelatedMdl
@{
    ViewBag.Title = "降价提醒";
    Layout = "~/Views/Shared/_MobileIndex2.cshtml";
}
<link rel="stylesheet" href="~/Content/styles/member.css">
@if(Model.PriceProducts!=null && Model.PriceProducts.Count>0)
{
      <!-- 降价宝贝 -->
    <div class="price-model depPrice">
        <div class="price-title">
            降价宝贝<i class="Num">(@Model.PriceProducts.Count)</i>
        </div>
        @foreach (var item in Model.PriceProducts)
        {
            <ul class="price-list">
                <li class="clearfix">
                    <div class="checkbox fl">
                        <input type="checkbox">
                    </div>
                    <div class="info">
                        <div class="itemImg fl">
                            <img src="@item.ImageUrl" alt="">
                        </div>
                        <p class="price-name">@item.ProductTitle</p>
                        <div class="price-info">价格 <span class="money">￥ @item.ProductPrice</span> <div class="bar fr"><a class="del" data-value="@item.Id"></a></div></div>
                    </div>
                </li>
            </ul>
        }
    </div>
}

@if (Model.ShelfProducts != null && Model.ShelfProducts.Count > 0)
{ 
<!-- 上架宝贝 -->
<div class="price-model sjPrice">
    <div class="price-title">
        上架宝贝<i class="Num">(@Model.ShelfProducts.Count)</i>
    </div>
    @foreach (var item in Model.ShelfProducts)
    {
        <ul class="price-list">
        <li class="clearfix">
            <div class="checkbox fl">
                <input type="checkbox">
            </div>
            <div class="info">
                <div class="itemImg fl">
                    <img src="@item.ImageUrl" alt="">
                </div>
                <p class="price-name">@item.ProductTitle</p>
                <div class="price-info">价格 <span class="money">￥ @item.ProductPrice</span> <div class="bar fr"><a class="del" data-value="@item.Id"></a></div></div>
            </div>
        </li>
    </ul>
    }
</div>  
}
@if (Model.Orders != null && Model.Orders.Count > 0)
{ 
    <!-- 订单提交 -->
<div class="price-model postOrder">
    <div class="price-title">
        订单提交<i class="Num">(@Model.Orders.Count)</i>
    </div>
    @foreach (var item in Model.Orders)
    {
        <ul class="price-list">
                 <li class="clearfix">
                <div class="checkbox fl">
                    <input type="checkbox">
                </div>
                <div class="info">
                    <div class="itemImg fl">
                        <img src="~/Content/images/item.png" alt="">
                    </div>
                    <p class="price-name">凯蒂猫咪玩偶布娃娃</p>
                    <div class="price-info">价格 <span class="money">￥ 99</span> <div class="bar fr success">@Helper.GetStatus(item.Status??0)</div></div>
                </div>
            </li>
        </ul>
    }
</div>
}
@section foot{
    <script>
        $(".tips").click(function () {
        });
        $(".del").click(function () {
            var $this = $(this),
                $id = $this.data('value');
            if (confirm("确定要删除？")) {
                $.post("../../MobileWebManage/Product/RemoveForm", {keyValue:$id}, function (data) {
                    alert(data.message);
                    if (data.type == 1){
                        window.location.reload();
                    }
                },'json');
            }
        });
    </script>
}
